.class Lcom/waiqin365/lightapp/visit/dr;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    const v3, 0x7f0806f1

    const/4 v1, 0x0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->dismissProgressDialog()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/visit/a/a/al;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->getString(I)Ljava/lang/String;

    iget-object v2, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->c:Ljava/lang/String;

    if-eqz v2, :cond_0

    iget-object v2, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->c:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_0

    iget-object v2, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->c:Ljava/lang/String;

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/a/a/al;->b()Z

    move-result v2

    if-eqz v2, :cond_5

    iget-object v2, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->b:Ljava/lang/String;

    if-eqz v2, :cond_4

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    iget-object v2, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->d:Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    :goto_1
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_2

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/b/bd;->o:Ljava/lang/String;

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_1

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/b/bd;->o:Ljava/lang/String;

    const-string/jumbo v4, ","

    invoke-virtual {v3, v4}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_1

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Ljava/util/ArrayList;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/lightapp/visit/ds;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/ds;-><init>(Lcom/waiqin365/lightapp/visit/dr;)V

    invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->b(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Lcom/baidu/mapapi/map/BaiduMap;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/BaiduMap;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->c(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)V

    const-string/jumbo v0, "planManage"

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->d(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->e(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Lcom/waiqin365/lightapp/visit/b/ao;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/ao;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->e(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Lcom/waiqin365/lightapp/visit/b/ao;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/ao;->notifyDataSetChanged()V

    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->h(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Landroid/support/v4/view/ViewPager;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setCurrentItem(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)I

    move-result v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;I)V

    goto/16 :goto_0

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Lcom/waiqin365/lightapp/visit/b/at;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/at;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Lcom/waiqin365/lightapp/visit/b/at;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/at;->notifyDataSetChanged()V

    goto :goto_2

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    const v3, 0x7f0802c1

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_5
    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->i(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Landroid/content/Context;

    move-result-object v1

    iget v0, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->a:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->dismissProgressDialog()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/visit/a/a/aa;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/a/a/aa;->c:Ljava/lang/String;

    if-eqz v3, :cond_6

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/a/a/aa;->c:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    if-lez v3, :cond_6

    iget-object v2, v0, Lcom/waiqin365/lightapp/visit/a/a/aa;->c:Ljava/lang/String;

    :cond_6
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/a/a/aa;->b()Z

    move-result v3

    if-eqz v3, :cond_a

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/a/a/aa;->b:Ljava/lang/String;

    if-eqz v3, :cond_9

    const-string/jumbo v3, "1"

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/a/a/aa;->b:Ljava/lang/String;

    invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->j(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)I

    move-result v0

    const/4 v1, -0x1

    if-eq v0, v1, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Ljava/util/ArrayList;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->j(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;Z)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;Lcom/waiqin365/lightapp/visit/b/bd;)Lcom/waiqin365/lightapp/visit/b/bd;

    :cond_7
    const-string/jumbo v0, "planManage"

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->d(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_8

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->e(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Lcom/waiqin365/lightapp/visit/b/ao;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/ao;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->e(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Lcom/waiqin365/lightapp/visit/b/ao;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/ao;->notifyDataSetChanged()V

    goto/16 :goto_0

    :cond_8
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Lcom/waiqin365/lightapp/visit/b/at;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/at;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Lcom/waiqin365/lightapp/visit/b/at;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/at;->notifyDataSetChanged()V

    goto/16 :goto_0

    :cond_9
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->i(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, v2, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_a
    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/dr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;->i(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;)Landroid/content/Context;

    move-result-object v1

    iget v0, v0, Lcom/waiqin365/lightapp/visit/a/a/aa;->a:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x2bd
        :pswitch_1
        :pswitch_0
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method
